package cn.itsource.pethome.base.query;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class BaseQuery {
    //当前页码   默认为1
    private Integer currentPage = 1;

    //每页条数，默认5条
    private Integer pageSize = 5;

    //开始页
    public Integer getBegin(){
        return (currentPage-1)*pageSize;
    }


}
